<template>
	<view class="container-root">
		<view class='repair-common-detail-title'>
		  <image class='repair-detail-image' src='/static/images/doubt.png'></image>
		  <view >{{problemDetail.question}}</view>
		</view>
		<view class='repair-common-detail-content'>
		  <text class='detail-answer'>答</text>
		  <text space='nbsp'>{{problemDetail.answer}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				problemDetail:null,
			}
		},
		onLoad(options){
			this.problemDetail = JSON.parse(options.problemDetail);
			//console.log(this.problemDetail);
			
		},	
		methods: {
			
		}
	}
</script>

<style>
	page{
		background-color: #F1F1F1;
	}
	.repair-common-detail-title{
		display: flex;
		flex-direction: row;
		align-items: center;
		font-weight: bold;
		height: 90rpx;
		width: calc(100% - 30rpx);
		padding-left: 30rpx;
	}
	.repair-detail-image{
		width: 40rpx;
		height: 40rpx;
		margin-right: 10rpx;
	}
	.repair-common-detail-content{
		width: calc(100% - 60rpx);
		min-height: 500rpx;
		margin:0rpx 20rpx 20rpx 20rpx;
		padding: 10rpx;
		border: 1rpx solid white;
		border-radius: 10rpx;
		background-color: white;
		word-break:break-all;
	}
	
	.detail-answer{
		background-color: #00b9ef;
		color: white;
		padding: 2rpx 5rpx 2rpx 5rpx;
		border-radius: 5rpx;
		margin-right: 10rpx;
	}
</style>
